package com.example.first.bean;
import com.example.first.entity.SpellChecker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class Editor {

    private SpellChecker checker;

    @Autowired
    @Qualifier("spellChecker")
    public void setChecker(SpellChecker checker) {
        this.checker = checker;
    }

    public SpellChecker getChecker() {
        return checker;
    }

    public void spellCheck() {
        checker.checkSpelling();
    }
}
